package com.easybuilder.core.rbac.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 部门实体类
 *
 * @author 张兴帅
 * @projectName easy-builder
 * @packageNmae com.easybuilder.core.rbac.entity
 * @fileNmae SysDept
 * @date 2023-5-16
 * @copyright 华能信息技术有限公司
 * @since 0.0.1
 */
@Data
@Entity
@Table(name = "sys_dept")
public class SysDept {
    @Id
    @GeneratedValue(generator = "JDBC") //设置主键自动增长，执行insert操作后，主键会回写到实体类
    private Long id;
    private Long parentId;
    private String parentName;
    private String deptName;
    private String deptCode;
    private String orgCode;
    private Integer sort;
}